<template>
  <div class="panel">
    <h3>团伙分析结果</h3>
    <el-alert :title="summary.summary" type="info" :closable="false" />
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'

const summary = ref({ summary: '正在加载...' })

onMounted(async () => {
  const res = await fetch('http://127.0.0.1:8000/analysis-summary') // 注意后端地址
  summary.value = await res.json()
})
</script>